<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="cms" uri="http://cms.gxsoft.com/tags-cms"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>案卷详细</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript">
	//隐藏显示span
	function displaySpan(id){
		var x = document.getElementById(id).style.display;
		if(x == "none"){
			document.getElementById(id).style.display = "";
		}else{
			document.getElementById(id).style.display = "none";
		}
	}
	//申请立案详细
	function detailApplyCase(aid){
		var arr = showModalDialog("<%=request.getContextPath()%>/ApplyCase.do?method=detailApplyCase&aid=" + aid, "", "dialogWidth:450pt;dialogHeight:408pt;help:0;status:0");
	}
	//授权委托书详细
	function detailGivePowerBook(gid){
		var arr = showModalDialog("<%=request.getContextPath()%>/GivePowerBookInfo.do?method=detailGivePowerBookInfo&gid=" +gid , "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
		document.location.reload();
	}
	//证据先行保存通知详细
	function detailEvidRigiNoti(eid){
		var arr = showModalDialog("<%=request.getContextPath()%>/EvidRigiNotiInfo.do?method=detailEvidRigiInfo&eid=" +eid , "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
		document.location.reload();
	}
	//证据先行保存决定详细
	function detailEvidDeci(eid){
		var arr = showModalDialog("<%=request.getContextPath()%>/EvidDeciInfo.do?method=detailEvidDeciInfo&eid=" +eid , "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
		document.location.reload();
	}
	//案件延期详细
	function detailDelayInspect(did){
		var arr = showModalDialog("<%=request.getContextPath()%>/DelayInspect.do?method=detailDelayInspect&did=" + did, "", "dialogWidth:600pt;dialogHeight:350pt;help:0;status:0");
		document.location.reload();
	}
	//案件撤销详细
	function detailCaseNotApply(did){
		var arr = showModalDialog("<%=request.getContextPath()%>/CaseNotApply.do?method=detailCaseNotApply&did=" + did, "", "dialogWidth:600pt;dialogHeight:350pt;help:0;status:0");
		document.location.reload();
	}
	//案件移送书详细
	function detailCaseChangeInsp(eid){
		var arr = showModalDialog("<%=request.getContextPath()%>/CaseChangeInsp.do?method=detailCaseChangeInsp&cid=" +eid , "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
		document.location.reload();
	}
	//不予以受理详细
	function detailRefuseCase(rid){
		var arr = showModalDialog("<%=request.getContextPath()%>/RefuseCase.do?method=detailRefuseCase&rid=" + rid, "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
	}
	//案件讨论记录详细
	function detailDiscussRecord(did){
		var arr = showModalDialog("<%=request.getContextPath()%>/DiscussRecord.do?method=detailDiscussRecord&did=" + did, "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
		document.location.reload();
	}
	//询问通知书详细
	function detailQuerNotiInfo(qid){
		var arr = showModalDialog("<%=request.getContextPath()%>/QuerNotiInfo.do?method=detailQuerNotiInfo&qid=" + qid, "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
	}
	//询问笔录详细
	function detailEvidenceInfo(eid){
		var arr = showModalDialog("<%=request.getContextPath()%>/EvidenceInfo.do?method=detailEvidenceInfo&eid=" + eid, "", "dialogWidth:500pt;dialogHeight:550pt;help:0;status:0");
	}
	//处理申请表详细
	function detailDisposalConsiderations(did){
		var arr = showModalDialog("<%=request.getContextPath()%>/DisposalConsiderations.do?method=detailDisposalConsiderations&did=" + did, "", "dialogWidth:450pt;dialogHeight:408pt;help:0;status:0");
	}
	//整改指令书详细
	function detailDisposalRectification(did){
		var arr = showModalDialog("<%=request.getContextPath()%>/DisposalRectification.do?method=detailDisposalRectification&did=" + did, "", "dialogWidth:500pt;dialogHeight:250pt;help:0;status:0");
	}
	//处罚告知书详细
	function detailDisposalNotice(did){
		var arr = showModalDialog("<%=request.getContextPath()%>/DisposalNotice.do?method=detailDisposalNotice&did=" + did, "", "dialogWidth:500pt;dialogHeight:270pt;help:0;status:0");
	}
	//处罚决定书详细
	function detailDisposalDecision(did){
		var arr = showModalDialog("<%=request.getContextPath()%>/DisposalDecision.do?method=detailDisposalDecision&did=" + did, "", "dialogWidth:500pt;dialogHeight:250pt;help:0;status:0");
	}
	//送达回执详细
	function detailReceiptInfo(rid){
		var arr = showModalDialog("<%=request.getContextPath()%>/ReceiptInfo.do?method=detailReceiptInfo&rid=" + rid, "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
	}
	//强制执行详细
	function detailEnforceDo(eid){
		var arr = showModalDialog("<%=request.getContextPath()%>/EnforceDo.do?method=detailEnforceDo&eid=" +eid , "", "dialogWidth:500pt;dialogHeight:220pt;help:0;status:0");
		document.location.reload();
	}
	//结案审批表详细
	function detailApplyEndcase(aid){
		var arr = showModalDialog("<%=request.getContextPath()%>/ApplyEndcase.do?method=detailApplyEndcase&aid=" + aid, "", "dialogWidth:450pt;dialogHeight:600pt;help:0;status:0");
	}
</script>
</head>

<body>
<table width="70%">
  <tr>
    <td width="25%" align="right" class="bg_blue"><p>案件编号：</p>
    </td>
    <td width="75%" align="left" >${cInfo.caseInfoCode}&nbsp;</td>
  </tr>
  <tr>
    <td width="25%" align="right" class="bg_blue"><p>被立案单位：</p>
    </td>
    <td width="75%" align="left" >${cInfo.employerInfo.empInfoName}&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right">案件性质：</td>
    <td align="left"><cms:query value="${cInfo.caseInfoProperty}"></cms:query>&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right">案件来源：</td>
    <td align="left"><cms:query value="${cInfo.caseInfoSource}"></cms:query>&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right">案件状态：</td>
    <td align="left">已结案&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right">立案日期：</td>
    <td align="left"><fmt:formatDate pattern="yyyy-MM-dd" value="${cInfo.caseInfoBeginDate}"/>&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right">结案日期：</td>
    <td align="left"><fmt:formatDate pattern="yyyy-MM-dd" value="${cInfo.caseInfoEndDate}"/>&nbsp;</td>
  </tr>
  <tr>
    <td width="25%" align="right" class="bg_blue"><p>案由：</p>
    </td>
    <td width="75%" align="left" >${cInfo.caseInfoOrigin}&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right">案情及立案依据：</td>
    <td align="left">${cInfo.caseInfoBasiccondiBeginres}</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right">备注：</td>
    <td align="left">${cInfo.caseInfoRemark}</td>
  </tr>
  <tr>
    <td align="right" class="bg_blue">立案审批表</td>
    <td>
    <c:if test="${empty applyCase}"><font color="#FF0000">未填写</font></c:if>
    <c:if test="${!empty applyCase}"><a href="#" onclick="detailApplyCase('${applyCase.applyCaseId}')">查看</a>&nbsp;<a href="<%=request.getContextPath()%>//ApplyCase.do?method=docApplyCase&aid=${applyCase.applyCaseId}" target="_blank">下载</a></c:if></td>
  </tr>
    <tr>
    <td align="right" class="bg_blue">不予与受理决定书</td>
    <td>
    <c:if test="${empty refuseCase}"><font color="#FF0000">未填写</font></c:if>
    <c:if test="${!empty refuseCase}"><a href="#" onclick="detailRefuseCase('${refuseCase.id}')">查看</a>&nbsp;<a href="<%=request.getContextPath()%>//RefuseCase.do?method=docRefuseCase&rid=${refuseCase.id}" target="_blank">下载</a></c:if></td>
  </tr>
  <c:if test="${empty refuseCase}">
    <tr>
    <td align="right" class="bg_blue">询问通知书</td>
    <td>
    <a href="#" onclick="displaySpan('querNotiInfo')">查看</a>
    <br/>
    <span id="querNotiInfo" style="display:none">
    <c:if test="${empty querNotiInfoList}"><font color="#FF0000">未填写通知书</font></c:if>
    <c:forEach items="${querNotiInfoList}" var="prod" varStatus="lineInfo">
    [<fmt:formatDate pattern="yyyy-MM-dd" value="${prod.querNotiInfoCreateDate}"/>]通知书
    <a href="#" onclick="detailQuerNotiInfo('${prod.querNotiInfoId}')">查看</a>
    <a href="<%=request.getContextPath()%>/QuerNotiInfo.do?method=docQuerNotiInfo&qid=${prod.querNotiInfoId}" target="_blank">下载</a>
    <br/>
    </c:forEach>
    </span>
    </td>
  </tr>
 <tr>
    <td align="right" class="bg_blue">授权委托书</td>
    <td>
    <a href="#" onclick="displaySpan('givePowerBook')">查看</a>
    <br/>
    <span id="givePowerBook" style="display:none">
    <c:if test="${empty givePowerBookList}"><font color="#FF0000">未填写授权委托书</font></c:if>
    <c:forEach items="${givePowerBookList}" var="prod" varStatus="lineInfo">
    [<fmt:formatDate pattern="yyyy-MM-dd" value="${prod.givePowerDate}"/>]授权委托书
    <a href="#" onclick="detailGivePowerBook('${prod.givePowerId}')">查看</a>
    <a href="<%=request.getContextPath()%>/GivePowerBookInfo.do?method=docGivePowerBookInfo&gid=${prod.givePowerId}" target="_blank">下载</a>
    <br/>
    </c:forEach>
    </span>
    </td>
  </tr>
  <tr>
    <td align="right" class="bg_blue">询问笔录</td>
    <td>
    <a href="#" onclick="displaySpan('evidenceInfo')">查看</a>
    <br/>
    <span id="evidenceInfo" style="display:none">
    <c:if test="${empty evidenceInfoList}"><font color="#FF0000">未填写笔录</font></c:if>
    <c:forEach items="${evidenceInfoList}" var="prod" varStatus="lineInfo">
    [<fmt:formatDate pattern="yyyy-MM-dd" value="${prod.evidenceInfoBeginDate}"/>]笔录
    <a href="#" onclick="detailEvidenceInfo('${prod.evidenceInfoId}')">查看</a>
    <br/>
    </c:forEach>
    </span>
    </td>
  </tr>

  <tr>
    <td align="right" class="bg_blue">证据先行登记保存通知书</td>
    <td>
    <a href="#" onclick="displaySpan('evidenceRigisterNoti')">查看</a>

    <br/>
    <span id="evidenceRigisterNoti" style="display:none">
    <c:if test="${empty evidRigiNotiList}"><font color="#FF0000">未填写证据先行登记保存通知书</font></c:if>
    <c:forEach items="${evidRigiNotiList}" var="prod" varStatus="lineInfo">
    先行登记保存通知书
    <a href="#" onclick="detailEvidRigiNoti('${prod.id}')">查看</a>
    <a href="<%=request.getContextPath()%>/EvidRigiNotiInfo.do?method=docEvidRigiNotiInfo&eid=${prod.id}" target="_blank">下载</a>
    <br/>
    </c:forEach>
    </span>
    </td>
  </tr>
<tr>
    <td align="right" class="bg_blue">证据先行登记保存决定书</td>
    <td>
    <a href="#" onclick="displaySpan('evidenceDeci')">查看</a>
    <br/>
    <span id="evidenceDeci" style="display:none">
    <c:if test="${empty evidDeciList}"><font color="#FF0000">未填写证据先行登记保存决定书</font></c:if>
    <c:forEach items="${evidDeciList}" var="prod" varStatus="lineInfo">
    [<fmt:formatDate pattern="yyyy-MM-dd" value="${prod.evidRigiDeciDate}"/>]先行登记保存决定书
    <a href="#" onclick="detailEvidDeci('${prod.id}')">查看</a>
    <a href="<%=request.getContextPath()%>/EvidDeciInfo.do?method=docEvidDeciInfo&eid=${prod.id}" target="_blank">下载</a>
    <br/>
    </c:forEach>
    </span>
    </td>
  </tr> 
 <tr>
    <td align="right" class="bg_blue">案件延期处理报批表</td>
    <td>
    <c:if test="${empty DelayInspect}"><font color="#FF0000">未填写案件延期调查报批表</font></c:if>
    <c:if test="${!empty DelayInspect}">
    <a href="#" onclick="detailDelayInspect('${DelayInspect.id}')">查看</a>
    <a href="<%=request.getContextPath()%>/DelayInspect.do?method=docDelayInspect&did=${DelayInspect.id}" target="_blank">下载</a>
    <br/>
    </span>
    </c:if>
    </td>
  </tr>  


 <tr>
    <td align="right" class="bg_blue">案件撤销立案审批表</td>
    <td>
    
    <c:if test="${empty CaseNotApply}"><font color="#FF0000">未填写案件撤销立案审批表</font></c:if>
    
    <c:if test="${cInfo.caseInfoCasestate == '2' || cInfo.caseInfoCasestate == '9' || cInfo.caseInfoCasestate == 'e'}">
    <c:if test="${CaseNotApply.caseNotApplyIfagree == '0'}">
    <a href="#" onclick="applyCaseNotApply('${CaseNotApply.id}')">审批</a>
    </c:if>
     </c:if>
     <c:if test="${!empty CaseNotApply}">
    <a href="#" onclick="detailCaseNotApply('${CaseNotApply.id}')">查看</a>
    <a href="<%=request.getContextPath()%>/CaseNotApply.do?method=docCaseNotApply&did=${CaseNotApply.id}" target="_blank">下载</a>
    <br/>
    </span>
    </c:if>
    </td>
  </tr>  
 <tr>
    <td align="right" class="bg_blue">案件讨论记录</td>
    <td>
    <a href="#" onclick="displaySpan('DiscussRecord')">查看</a>
   
    <br/>
    <span id="DiscussRecord" style="display:none">
    <c:if test="${empty discussRecordList}"><font color="#FF0000">未填写案件讨论记录</font></c:if>
    <c:forEach items="${discussRecordList}" var="prod" varStatus="lineInfo">
    [<fmt:formatDate pattern="yyyy-MM-dd" value="${prod.discussRecordDate}"/>]案件讨论记录
    <a href="#" onclick="detailDiscussRecord('${prod.id}')">查看</a>
    <a href="<%=request.getContextPath()%>/DiscussRecord.do?method=docDiscussRecord&did=${prod.id}" target="_blank">下载</a>
    <br/>
    </c:forEach>
    </span>
    </td>
  </tr>
   <tr>
    <td align="right" class="bg_blue">案件移送书</td>
    <td>
    <c:if test="${cInfo.caseInfoCasestate == '2' || cInfo.caseInfoCasestate == '9' || cInfo.caseInfoCasestate == 'e'}">
    </c:if>
    <c:if test="${empty CaseChangeInsp}"><font color="#FF0000">未填写案件移送书</font></c:if>
    <c:if test="${!empty CaseChangeInsp}">
        <a href="#" onclick="detailCaseChangeInsp('${CaseChangeInsp.id}')">查看</a>
    <a href="<%=request.getContextPath()%>/CaseChangeInsp.do?method=docCaseChangeInsp&cid=${CaseChangeInsp.id}" target="_blank">下载</a>
    <br/>
    </span>
    </c:if>
    </td>
  </tr>
<tr>
    <td  align="right" class="bg_blue">行政处罚事先告知书、听证告知书</td>
    <td>
    <c:if test="${empty disposalNotice}"><font color="#FF0000">未填写</font>  </c:if>
    <c:if test="${!empty disposalNotice}">
    <a href="#" onclick="detailDisposalNotice('${disposalNotice.disposalNoticeId}')">查看</a>
    <a href="<%=request.getContextPath()%>/DisposalNotice.do?method=docDisposalNotice&did=${disposalNotice.disposalNoticeId}" target="_blank">下载事先告知书</a>
        <a href="<%=request.getContextPath()%>/DisposalNotice.do?method=docDisposalNoticeTz&did=${disposalNotice.disposalNoticeId}" target="_blank">下载听证告知书</a>
    </c:if>
    </td>
  </tr>
  <tr>
    <td  align="right" class="bg_blue">行政处罚决定书</td>
    <td>
    <c:if test="${empty disposalDecision}"><font color="#FF0000">未填写</font> 
    </c:if>
    <c:if test="${!empty disposalDecision}">
    <a href="#" onclick="detailDisposalDecision('${disposalDecision.dispDeciId}')">查看</a>
    <a href="<%=request.getContextPath()%>/DisposalDecision.do?method=docDisposalDecision&did=${disposalDecision.dispDeciId}" target="_blank">下载</a>
    </c:if>
    </td>
  </tr>
    <tr>
    <td align="right" class="bg_blue">强制执行申请书</td>
    <td>
    <c:if test="${empty EnforceDo}"><font color="#FF0000">未填写强制执行申请书</font></c:if>
    <c:if test="${!empty EnforceDo}">
     <a href="#" onclick="detailEnforceDo('${EnforceDo.id}')">查看</a>
    <a href="<%=request.getContextPath()%>/EnforceDo.do?method=docEnforceDo&eid=${EnforceDo.id}" target="_blank">下载</a>
    <br/>
    </span>
    </c:if>
    </td>
  </tr>
  <tr>
    <td align="right" class="bg_blue">处理审批表</td>
    <td>
    <c:if test="${empty disposalConsiderations}"><font color="#FF0000">未填写</font></c:if>
    <c:if test="${!empty disposalConsiderations}">
    <a href="#" onclick="detailDisposalConsiderations('${disposalConsiderations.disposalConsId}')">查看</a>
    <a href="<%=request.getContextPath()%>/DisposalConsiderations.do?method=docDisposalConsiderations&did=${disposalConsiderations.disposalConsId}" target="_blank">下载</a></c:if></td>
  </tr>
  <tr>
    <td  align="right" class="bg_blue">限期整改指令书</td>
    <td>
    <c:if test="${empty disposalRectification}"><font color="#FF0000">未填写</font> 
    </c:if>
    <c:if test="${!empty disposalRectification}">
    <a href="#" onclick="detailDisposalRectification('${disposalRectification.disposalRectId}')">查看</a>
    <a href="<%=request.getContextPath()%>/DisposalRectification.do?method=docDisposalRectification&did=${disposalRectification.disposalRectId}" target="_blank">下载</a>
    </c:if>
    </td>
  </tr>
  <tr>
    <td  align="right" class="bg_blue">行政处罚告知书</td>
    <td>
    <c:if test="${empty disposalNotice}"><font color="#FF0000">未填写</font> 
    </c:if>
    <c:if test="${!empty disposalNotice}">
    <a href="#" onclick="detailDisposalNotice('${disposalNotice.disposalNoticeId}')">查看</a>
    <a href="<%=request.getContextPath()%>/DisposalNotice.do?method=docDisposalNotice&did=${disposalNotice.disposalNoticeId}" target="_blank">下载</a>
    </c:if>
    </td>
  </tr>
  <tr>
    <td  align="right" class="bg_blue">行政处罚决定书</td>
    <td>
    <c:if test="${empty disposalDecision}"><font color="#FF0000">未填写</font> 
    </c:if>
    <c:if test="${!empty disposalDecision}">
    <a href="#" onclick="detailDisposalDecision('${disposalDecision.dispDeciId}')">查看</a>
    <a href="<%=request.getContextPath()%>/DisposalDecision.do?method=docDisposalDecision&did=${disposalDecision.dispDeciId}" target="_blank">下载</a>
    </c:if>
    </td>
  </tr>
        <tr>
    <td align="right" class="bg_blue">送达回执</td>
    <td>
    <a href="#" onclick="displaySpan('receiptInfo')">查看</a>
       <br/>
    <span id="receiptInfo" style="display:none">
    <c:if test="${empty receiptInfoList}"><font color="#FF0000">未填写送达回执</font></c:if>
    <c:forEach items="${receiptInfoList}" var="prod" varStatus="lineInfo">
    [${prod.receiptInfoYear}-${prod.receiptInfoMonth}-${prod.receiptInfoDay}]送达回执
    <a href="#" onclick="detailReceiptInfo('${prod.receiptInfoId}')">查看</a>
    <a href="<%=request.getContextPath()%>/ReceiptInfo.do?method=docReceiptInfo&rid=${prod.receiptInfoId}" target="_blank">下载</a>
    <br/>
    </c:forEach>
    </span>
    </td>
  </tr>
  <tr>
    <td align="right" class="bg_blue">结案审批表</td>
    <td>
    <c:if test="${empty applyEndcase}"><font color="#FF0000">未填写</font></c:if>
    <c:if test="${!empty applyEndcase}">
    <a href="#" onclick="detailApplyEndcase('${applyEndcase.applyEndcaseId}')">查看</a>
    <a href="<%=request.getContextPath()%>/ApplyEndcase.do?method=docApplyEndcase&aid=${applyEndcase.applyEndcaseId}" target="_blank">下载</a></c:if></td>
  </tr>
  </c:if>
  <tr>
    <td class="nohover" colspan="2" align="center">
    <input class="buttonreturn" type="button" value="返回" onClick="history.go(-1)">
    </td>
  </tr>
</table>
</body>
</html>
